<!-- 顶部环境 -->

<template>
  <EasyCard class="ElecOverview-TopEnvironment" noScroll sixth>
    <template #title>
      <CardTitle />
    </template>

    <div v-for="(item, i) in info.dataList" :key="item.id" class="inFlex flexCol">
      <div>
        <img :src="MAP.IMG_LIST[i]" />
      </div>

      <label class="flexCC">{{ item.columnName }}</label>

      <div class="flexCC">
        <b>{{ item.value }}</b>
      </div>
    </div>

    <MyModal />
  </EasyCard>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'
import store from './store'
import props from '../props'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'TopEnvironment',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [CORE.mixStore(store)],

  /**
   * 组件导入 (Abc.vue + Abc/index.vue)
   */
  ...CORE.components(
    require.context('../components', true, /vue$/),
    require.context('./', true, /vue$/),
  ),

  /**
   * 属性注册 (抽取以便查阅)
   */
  props,
}
</script>

<style lang="scss">
@import './index.scss';
</style>
